package drugdealer.servidor;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;

import javax.swing.JOptionPane;

public class Teste_Socket {
	
	public static void main(String[] args) {
		try {
			Socket sock = new Socket("localhost",50001);
			ObjectOutputStream out = new ObjectOutputStream(sock.getOutputStream());
			
			while (sock.isConnected()) {
				out.writeObject(JOptionPane.showInputDialog(""));
			}
	     
		} catch (IOException e) {
		
		} 
	}
	
}
